package cn.hzc.fortess.system.page;

import com.google.common.collect.Lists;
import io.swagger.annotations.Api;

import java.util.List;


public class Pagination {

    private Integer code = 0;

    private String msg = "";

    private List data = null;

    private long count = 0;

    public List getData() {
        if (data == null) {
            data = Lists.newArrayList();
        }
        return data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(List data) {
        this.data = data;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }
}
